home *** CD-ROM | disk | FTP | other *** search
- on RollEarth spr
- global earth_list, earth_spd_flag
- set nam to EMPTY
- if SpriteExists(spr) > 0 then
- set nam to char 1 to 4 of the name of the member of sprite spr
- end if
- if (SpriteExists(spr) > 0) and (nam = "tiny") then
- set _now to the name of the member of sprite spr
- set f to 1
- set _next to EMPTY
- repeat while (_next = EMPTY) and (f < 100)
- set _test to getAt(earth_list, f)
- if _test = _now then
- set _next to getAt(earth_list, f + earth_spd_flag)
- end if
- set f to f + 1
- end repeat
- if _next = "_loop" then
- set _next to getAt(earth_list, 1)
- end if
- set the member of sprite spr to member _next of castLib "buttons"
- if earth_spd_flag = 1 then
- set earth_spd_flag to 1
- else
- set earth_spd_flag to 1
- end if
- end if
- end
-